<?php
global $_RQ,$_AR;
$_RQ['op']=$_RQ['op']?$_RQ['op']:'edit';
$return=array();
if($_RQ['op']=='edit'){
	$item=$this->plugin_setting('shopset');
    $return['item']=$item;
	
	$return['levels']=array('-1'=>'无','0'=>'1级','1'=>'2级');
	$htmls=array(
		'type'=>'edit',
		'post'=>'post',
		'desc'=>'分类设置',
		'edit'=>array(
					array('type'=>'radio','title'=>'分类级别','name'=>'level','options'=>'levels'),
					array('type'=>'image','title'=>'推荐广告图','name'=>'groupsetimg'),
					array('type'=>'link','title'=>'推荐链接','name'=>'groupseturl'),
					
			),
	);
	$return['htmls']=$htmls;
	exi($return);
}
if($_RQ['op']=='post'){
	$postdata=get_postdata();
	$item=$this->plugin_setting('shopset',$postdata);
	exi('设置成功');
}
?>